package net.pulseproject.router.systemtest;

import javax.sound.midi.ShortMessage;

public class ShortMessageDescriptor {
	
	private final int channel;
	
	private final int status;
	
	private final int data1;
	
	private final int data2;

	public ShortMessageDescriptor(final int channel, final int status, final int data1, final int data2) {
		this.channel = channel;
		this.status = status;
		this.data1 = data1;
		this.data2 = data2;
	}
	
	public final boolean equalsTo(final ShortMessage message) {
		return  message.getChannel() == this.channel &&
				message.getStatus() == this.status &&
				message.getData1() == this.data1 &&
				message.getData2() == this.data2;
	}

	@Override
	public final String toString() {
		return "ShortMessageDescriptor[" +
				"channel=" + this.channel + ", " +
				"data1=" + this.data1 + ", " +
				"data2=" + this.data2 + ", " +
				"status=" + this.status + "]";
	}
	
	
}
